$(document).ready(function () {
QueryAllMem();
})

function QueryAllMem() {
    $.getJSON("http://yptymm.natappfree.cc/QueryAllMem", {"storeid": 1}, function (data) {
        str = "";
        $(data).each(function (i) {
            str += "<li>\n" +
                "                    <div class=\"goos-con\"><a class=\"goos-con-a\" target=\"_blank\"\n" +
                "                                             href=\"https://item.yhd.com/100003514414.html\"\n" +
                "                                             clstag=\"pageclick|keycount|SuperBrandLoad_20181228|SKU1\">\n" +
                "                        <div href=\"javascirpt:;\" class=\"layer-bg none\">\n" +
                "                            <div>"+data[i].storeid+"</div>\n" +
                "                        </div>\n" +
                "                        <img src="+data[i].path+" class=\"goods-img\" alt=\"\"\n" +
                "                             style=\"background: rgba(0, 0, 0, 0) none repeat scroll 0% 0%;\">\n" +
                "                        <p class=\"title limit\">"+data[i].name+"</p></a>\n" +
                "                        <div class=\"land-middle\"><p class=\"sold\">库存："+data[i].stock+"</p>\n" +
                "                                </div>"+
                "                        <div class=\"price-cart clearfix\">\n" +
                "                            <div class=\"super-brand-price\"><span class=\"new-unit\"></span>￥<span\n" +
                "                                    class=\"new-price\">"+data[i].price+"</span>\n" +
                "                                <div class=\"old-price-content\"><span class=\"old-unit\"></span> <span class=\"old-price\">"+data[i].price+"</span>\n" +
                "                                </div>\n" +
                "                            </div>\n" +
                "                            <div class=\"cart\" data-addproduct=\"100003514414\">加入购物车</div>\n" +
                "                        </div>\n" +
                "                    </div>\n" +
                "                </li>";
        })
        $("#AllMem").html(str);
    })
}